#pragma once
#include "afxwin.h"
class CMyFrame :public CFrameWnd
{
public:
	CMyFrame();
	~CMyFrame();
	virtual BOOL Create(LPCTSTR lpszClassName,
		LPCTSTR lpszWindowName,
		DWORD dwStyle = WS_OVERLAPPEDWINDOW,
		const RECT& rect = rectDefault,
		CWnd* pParentWnd = NULL,        // != NULL for popups
		LPCTSTR lpszMenuName = NULL,
		DWORD dwExStyle = 0,
		CCreateContext* pContext = NULL);
	BOOL PreCreateWindow(CREATESTRUCT& cs);

	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	afx_msg LRESULT onShowTask(WPARAM wParam, LPARAM lParam);
	afx_msg void OnClose();
	void AddNotifyIcon();

	DECLARE_MESSAGE_MAP()
private:
	
	CBitmap *bitmaps;
	int bitmap_index;
};
